﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace StyleMVVM.DependencyInjection.Conditions
{
	public class ExportWhenConfigValueNotPresentAttribute
	{
				private string configName;
		private bool cache;

		public ExportWhenConfigValueNotPresentAttribute(string configName)
		{
			this.configName = configName;
			this.cache = true;
		}

		public ExportWhenConfigValueNotPresentAttribute(string configName,  bool cache)
		{
			this.configName = configName;
			this.cache = cache;
		}

		public IExportCondition ProvideCondition(Type exportType)
		{
			return new WhenConfigValueNotPresent(configName,  cache);
		}
	}
}
